package com.wanho.java158.impl;

import com.github.pagehelper.PageInfo;
import com.wanho.java157.*;
import com.wanho.java157.po.BaseEntity;
import com.wanho.java157.service.impl.BaseServiceImpl;
import com.wanho.java157.vo.CustomerVo;
import com.wanho.java158.CarService;
import com.wanho.java158.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

@Service
public class CarServiceImpl  implements CarService {
    @Autowired
    private CarMapper carMapper;

    @Override
    public boolean updateByPrimaryKey(Car record) {
        return false;
    }

    @Override
    public boolean deleteByCustomerId(Integer id) {
        return false;
    }

    @Override
    public Car selectByCustomerId(Integer id) {
        return carMapper.selectByCustomerId(id);
    }

    @Override
    public List<Car> selectAll() {
        return carMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(Integer carId) {
        return carMapper.deleteByPrimaryKey(carId);
    }

    @Override
    public int insert(Car record) {
        return carMapper.insert(record);
    }
}
